package com.teamclub.base.confs;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value="classpath:base.properties")
@ConfigurationProperties(prefix = "sms.netease")
public class SmsConf {
    private String appkey;
    private String appsercet;
    private IdentifyCode identifycode;
    private Template template;

    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    public String getAppsercet() {
        return appsercet;
    }

    public void setAppsercet(String appsercet) {
        this.appsercet = appsercet;
    }

    public IdentifyCode getIdentifycode() {
        return identifycode;
    }

    public void setIdentifycode(IdentifyCode identifycode) {
        this.identifycode = identifycode;
    }

    public Template getTemplate() {
        return template;
    }

    public void setTemplate(Template template) {
        this.template = template;
    }

    public static class IdentifyCode {
        private String send;
        private String verify;

        public String getSend() {
            return send;
        }

        public void setSend(String send) {
            this.send = send;
        }

        public String getVerify() {
            return verify;
        }

        public void setVerify(String verify) {
            this.verify = verify;
        }
    }
    public static class Template {
        private String send;
        private String verify;

        public String getSend() {
            return send;
        }

        public void setSend(String send) {
            this.send = send;
        }

        public String getVerify() {
            return verify;
        }

        public void setVerify(String verify) {
            this.verify = verify;
        }
    }
}
